This will be useful to let other pieces know of user-triggered
brightness changes.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3979>
export const BrightnessManager = GObject.registerClass({
Signals: {
'changed': {},
+ 'user-update': {},
},
}, class BrightnessManager extends GObject.Object {
constructor() {
return;
scale._scaleChanged = true;
this._sync();
+ this.emit('user-update');
}, this);
this._monitorScales.set(monitor, scale);
return;
this._globalScaleChanged = true;
this._sync();
+ this.emit('user-update');
});
}